package com.future.mayi.adapter;

import android.content.Context;

import com.future.mayi.R;
import com.future.mayi.model.BrandModel;

import java.util.List;

/**
 * Created by 周大虎 on 2017/5/25.
 */

public class BrandAdapter extends CommonAdapter<BrandModel> {
    public BrandAdapter(Context context, int textViewResourceId, List<BrandModel> objects) {
        super(context, textViewResourceId, objects);
    }

    @Override
    public void convert(ViewHolder helper, BrandModel item) {
        helper.setWebImage(R.id.iv_icon, item.getBrand_img());
        helper.setText(R.id.tv_name, item.getBrand_name());
    }


}
